export class GuidHelper {

    private static _instace: GuidHelper;
    public static get instance(): GuidHelper {
        if (this._instace == null) {
            this._instace = new GuidHelper();
        }
        return this._instace;
    }

    private _cacheIdIndex: number;

    private constructor() {
        this._cacheIdIndex = 0;
    }

    public GenGuid() {
        return this._cacheIdIndex++;
    }

}